from config import BASE_DIR
import json


def read_json_data(path_filename):
    # with open(BASE + "/data/json_data.json", "r", encoding="utf8") as f:
    # with open(BASE + "/data/ihrm_json_data.json", "r", encoding="utf8") as f:
    with open( path_filename, "r", encoding="utf8") as f:
        data = json.load(f)

        list_data = []
        for item in data:
            tmp = tuple(item.values())
            list_data.append(tmp)
        return list_data
